import http from "@/utils/http.js";

export const getNow = () => {
	return http({
		url: "/client/plan/getNow",
	})
}

export const setPlan = (bookId,everyDayWordNum,dayCompleteNum) => {
	return http({
		url: "/client/plan/setPlan",
		data: {
			"bookId": bookId,
			"everyDayWordNum": everyDayWordNum,
			"dayCompleteNum": dayCompleteNum,
		}
	})
}

export const havePlan = () => {
	return http({
		url: "/client/plan/havePlan",
	})
}

export const importWord = (bookId) => {
	return http({
		url: "/client/plan/importWord",
		data: {
			"bookId": bookId,
		}
	})
}

export const setDayComplete = () => {
	return http({
		url: "/client/plan/setDayComplete",
	})
}
